<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="keywords" content="信息管理页,18001010321,王梓豪">
    <title>信息管理页18001010321</title>
    <link rel="stylesheet" href="../iconfont/zixun/iconfont.css">
    <script src="../iconfont/zixun/iconfont.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .icon {
            width: 3em;
            height: 3em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
            margin-top: 10px;
            margin-left: 10px;
        }

        body {
            min-width: 320px;
            background-color: rgb(230, 230, 230);
        }

        img {
            display: block;
            border: none;
        }

        a {
            text-decoration: none;
        }

        ul {
            list-style: none;
        }

        .all {
            width: 100%;
            overflow: hidden;

        }

        .navi {
            z-index: 2;
            background-color: #fff;
            width: 100%;
            position: fixed;
            top: 0;
            /* height: 55px; */
            border-bottom: 1px solid #eee;
        }

        .navi_in {
            border-bottom: 1px solid #eee;
            position: relative;
            width: 100%;
            height: 55px;
        }

        .navi_in1 {
            font-size: 15px;
            padding: 10px;
            width: 100%;
            height: 50px;
            background-color: rgb(159, 171, 183);
            color: rgb(240, 251, 255);
        }

        .navi_in2 {
            display: flex;
            height: 70px;
        }

        .navi_in2 div {

            margin-left: 10px;
        }

        .navi_in2 div span {
            font-size: 14px;
            color: rgb(133, 133, 133);
        }

        .navi_in2 div h3 {
            margin-top: 10px;
            font-size: 20px;
        }

        .zh {
            position: absolute;
            right: 15px;
            top: 0;
            line-height: 55px;
        }

        .icon-xiangzuo {
            position: absolute;
            font-size: 25px;
            line-height: 55px;
            margin-left: 7px;
            color: #000;
        }

        .head {
            text-align: center;
            height: 55px;
            line-height: 55px;
            margin: 0 auto;
            width: 100px;
            margin: 0 auto;
            font-size: 19px;
        }

        .icon-more {
            position: absolute;
            top: 0;
            right: 10px;
            line-height: 55px;
            font-size: 30px;
            color: #000;
        }

        .bottom_navi {
            overflow: hidden;
            background-color: #fff;
            width: 100%;
            position: fixed;
            bottom: 0;
            height: 90px;
            border-top: 1px solid #eee;
        }

        .bottom_navi div {
            border-radius: 3px;
            background-color: rgb(41, 41, 41);
            margin: 0 auto;
            margin-top: 15px;
            font-size: 17px;
            line-height: 55px;
            text-align: center;
            height: 55px;
            width: 80%;
            color: #fff;
        }

        .icon-qq {
            font-size: 23px;
        }

        .zhanghao {
            height: 83px;
            border-bottom: 1px solid #eee;
            background-color: #fff;
            margin-top: 205px;
            display: flex;
        }

        .touxiang {
            margin-top: 15px;
            margin-left: 15vw;
            border: 1px solid #eee;
            border-radius: 50px;
            overflow: hidden;
            width: 50px;
            height: 50px;
        }

        .touxiang img {
            width: 50px;
            height: 50px;
        }

        .zzh {
            margin-left: 10px;
        }

        .zzh p {
            margin-top: 15px;
            font-size: 19px;
        }

        .zzh p span {
            margin-left: 7px;
            background-color: rgb(201, 159, 101);
            color: #fff;
            padding: 0 5px;
            font-size: 12px;
            border-radius: 3px;
        }

        .zzh>div {
            margin-top: 7px;
            color: rgb(122, 122, 122);
            font-size: 15px;
        }

        .list_head {
            color: rgb(170, 170, 170);
            display: flex;
            background-color: #fff;
            height: 50px;
        }

        .list_head div:nth-child(1) {
            height: 50px;
            width: 20%;
        }

        .list_head div:nth-child(2) {
            font-size: 14px;
            text-align: left;
            line-height: 50px;
            height: 50px;
            width: 55%;
        }

        .list_head div:nth-child(3) {
            text-align: center;
            font-size: 14px;
            line-height: 50px;
            height: 50px;
            width: 25%;
        }

        .list_main {
            margin-bottom: 100px;
            width: 100%;
        }

        .list_main li {
            display: flex;
            background-color: #fff;
            height: 79px;
        }

        .list_main li div:nth-child(1) {
            height: 79px;
            width: 20%;
        }

        .list_main li div:nth-child(1) div {
            margin-top: 20px;
            margin-left: 6vw;
            width: 16px;
            height: 16px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 20px;
        }

        .list_main li div:nth-child(2) {
            height: 79px;
            width: 55%;
            border-bottom: 1px solid #eee;
        }

        .list_main li div:nth-child(2) p {
            margin-top: 10px;
            font-size: 21px;
        }

        .list_main li div:nth-child(2) span {
            color: rgb(150, 148, 148);
            font-size: 14px;
        }

        .list_main li div:nth-child(3) {
            height: 79px;
            width: 25%;
            border-bottom: 1px solid #eee;
        }

        .list_main li div:nth-child(3) .check {
            margin: 0 auto;
            margin-top: 20px;
            border-radius: 10px;
            width: 45px;
            height: 20px;
            border: 1px solid #eee;
            background-color: rgb(130, 210, 33);
        }

        .list_main li div:nth-child(3) .check_y {
            transform: translateX(23px);
            border-radius: 20px;
            margin-top: 0;
            margin-left: 1px;
            margin-right: 1px;
            width: 18px;
            height: 18px;
            background-color: #fff;
        }
    </style>
</head>

<body>
    <div class="all">
        <div class="navi">
            <div class="navi_in">
                <span class="iconfont icon-xiangzuo"></span>
                <div class="head">角色管理</div>
                <span class="zh">账号管理</span>
            </div>
            <div class="navi_in1">
                请默认添加并管理角色列表，设定“默认角色”作用于主、客态下战绩与游戏身份的默认角色数据显示。
            </div>
            <div class="navi_in2">
                <svg class="icon" aria-hidden="true">
                    <use xlink:href="#icon-fenlei-yingxionglianmeng"></use>
                </svg>
                <div>
                    <h3>英雄联盟</h3>
                    <span>共15个角色</span>
                </div>
            </div>
        </div>
        <div class="zhanghao">
            <div class="touxiang">
                <img src="../images/提莫头像.jpg">
            </div>
            <div class="zzh">
                <p>1925334655<span>主账号</span></p>
                <div>QQ</div>
            </div>
        </div>
        <div class="list_head">
            <div></div>
            <div>角色列表</div>
            <div>是否显示</div>
        </div>
        <ul class="list_main">
            <!-- <li>
                <div>
                    <div></div>
                </div>
                <div>
                    <p>鸽子小莫</p>
                    <span>裁决之地 电信 | 倔强王者Ⅲ | Lv.116</span>
                </div>
                <div>
                    <div class="check">
                        <div class="check_y"></div>
                    </div>
                </div>
            </li> -->
        </ul>
        <div class="bottom_navi">
            <div>
                <span class="iconfont icon-qq"></span>
                用QQ绑定
            </div>
        </div>
    </div>
    <script>
        let data = [{
                name: "鸽子小莫",
                area: "裁决之地 电信 | 倔强王者Ⅲ | Lv.116"
            },
            {
                name: "河边四棵树",
                area: "裁决之地 电信 | 不屈宗师Ⅰ | Lv.211"
            },
            {
                name: "哈来打我啊",
                area: "裁决之地 电信 | 最强黑铁Ⅰ | Lv.300"
            },
            {
                name: "假的LOL召唤师",
                area: "裁决之地 电信 | 傲世青铜Ⅱ | Lv.110"
            },
            {
                name: "英勇无比的提莫",
                area: "裁决之地 电信 | 傲世青铜Ⅳ | Lv.399"
            },
            {
                name: "祖安猎马人",
                area: "祖安 电信 | 最强王者3000 | Lv.400"
            }
        ];
        let mul = document.querySelector(".list_main");
        data.forEach((v, i) => {
            let li = document.createElement("li");
            li.innerHTML = `<div>
                    <div></div>
                </div>
                <div>
                    <p>${v.name}</p>
                    <span>${v.area}</span>
                </div>
                <div>
                    <div class="check">
                        <div class="check_y"></div>
                    </div>
                </div>`;
            mul.append(li);
        });
    </script>
    <script>
        let check = document.querySelectorAll(".check");
        let check_y = document.querySelectorAll(".check_y");
        console.log(check);
        for (let i = 0; i < check.length; i++) {
            check[i].index = i;
            check[i].flag = true;
            check[i].addEventListener("click", function () {
                if (this.flag == true) {
                    this.flag = false;
                    this.style.backgroundColor = "#eee";
                    check_y[this.index].style.transform = "translateX(0px)";
                } else {
                    this.flag = true;
                    this.style.backgroundColor = "rgb(130, 210, 33)";
                    check_y[this.index].style.transform = "translateX(23px)";
                }
            });
        }
    </script>
</body>

</html>